<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript" charset="utf-8">
        //闭包命令模式
        function MakeStart(obj) {
            return function () {
                obj.start();
            }
        }
        function MakeStop(obj) {
            return function () {
                obj.stop();
            }
        }
        var startCommand = new MakeStart(obj);
        startCommand();
        var stopCommand = new MakeStop(obj);
        startCommand();
    </script>
</head>
<body>
</body>
</html>